import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

const store = new Vuex.Store({
  state: {
    selectedDeviceList: null,
	selectedGoodList: null,
  },
  mutations: {
    setSelectedDeviceList(state, data) {
      state.selectedDeviceList = data;
    },
    clearSelectedDeviceList(state) {
      state.selectedDeviceList = null;
    },
	setSelectedGoodList(state, data){
		state.selectedGoodList = data;
	},
	clearSelectedGoodList(state, data){
		state.selectedGoodList = data;
	}
  },
});

export default store;